/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2018-06-29 12:45:42
 * @LastEditTime: 2019-08-27 16:13:43
 * @LastEditors: Please set LastEditors
 */
/**
 * 小程序配置文件
 */
// let host = 'http://192.168.1.56:80'
//开发
// let host = 'https://api-dev-shared-lavatory.vanfangyun.com'
//开发V2
// let host = 'https://api-lavatory-admin-dev.vanfangyun.com'
//测试
// let host = 'https://api-test-shared-lavatory.vanfangyun.com'
//运行
//192.168.1.108
//https://test-shared-lavatory.vanfangyun.com
//https://wisdomtoilet.vanfangyun.com:8443/PartTimeAppServer/
//let host = 'https://test-shared-lavatory.vanfangyun.com'
let host = 'https://test-shared-lavatory-wx.vanfangyun.com'
let host1 = 'https://test-shared-lavatory-wx.vanfangyun.com'

let host2 = 'http://192.168.1.92:8080'
    //演示
let host3 = 'https://test-shared-lavatory-wx.vanfangyun.com'



let host4 = 'https://test-shared-lavatory-wx.vanfangyun.com'
let host5 = 'https://test-shared-lavatory-wx.vanfangyun.com'
let host6 = 'https://test-shared-lavatory-wx.vanfangyun.com'
let host7 = 'https://test-shared-lavatory-wx.vanfangyun.com'
let host8 = 'http://test-shared-lavatory-wx.vanfangyun.com'
const appID = 'wx5ffb321e8b915b70';
//const appID = 'wxacd0b7f9e6bf24c6';

const appType = 'mini';

let config = {
    ///dict/v1/dictListByType/siteType
    // 下面的地址配合云端 Server 工作
    host,
    getType: `${host}/dict/v1/dictListByType/siteType`,
    getUserInfoByToken: `${host2}/user/v1/getUserInfoByToken`,
    getUserNameByToken: `${host2}/user/v1/getUserNameByToken.do`,
    // 更新用户信息
    updateUserInfoByToken: `${host2}/user/v1/updateUserInfoByToken`,
    // 获取用户token
    getWeixinUsers: `${host2}/wx/v1step/getWeixinUser`,

    getWeixinUser: `${host2}/wx/v2step/getWeixinUser`,
    // 绑定电话
    managerAppBindPhone: `${host2}/wx/v1/managerAppBindPhone?appId=${appID}&type=${appType}`,



    users: `${host2}/platformUserGld/v1/users`,

    getUser: `${host2}/platformUserGld/v1/getUser`,

    resetPassword: `${host2}/platformUserGld/v1/resetPassword`,

    getSyList: `${host2}/platformUserGld/v1/getSyList`





};

let constant = {
    storage: {
        token: "token"
    }
}

module.exports = config, constant